tmp file solution