cleaning up filenames and metadata