improved parallel environment logic
added tmp folder