using tmp folder to create temporary files