use tmp directory for build