added 'tmp' option