error handling

started to build out the error handling class