use batch mode
add log
fix log