adding error handling attributes