gets the file path right