start error handling