sets up path for file