first steps in error handling