startup error handling for debug purposes