converted tmp to local dir to ensure platform independence