tmp files are now written into a working dir