better error handling, when problems with the commandline occur