pass tmp file