makes file available as param from callback