changed tmp to working dir