setting up tempdir