gets the filename right