added error reporting for command line module, but it is not finalized yet