added temp dir option