minor change. temp dir and result dynamic generating.