improved error reporting, batch command mode with ok handling