guarantee uniqueness of %time% directory
add some javadoc