more tutorial error handling