dealing with filenames that do not end with compressed extensions
uped version