work in temp dir