use tmp as workdir