added custom error handling
added notes