added  tmpFolder option
added tmpDir option to specify temp-folder