some initial exception handling, debugging and reporting output