initial commit for error handling