add method setTempDir