batch mode works!