improved error handling
ability to turn all errors into warnings