expanded the file before checking it exists