my $filename = fileparse($full_path); die "couldn't parse the file name" unless $filename;