make sure file is picked first