some checks added for files that don't have meta data