added temp path arg