new temporal directory as parameter