add -g
batch mode can save
auto inputfile
clean up