handle errors using notifications
add category for NSNotification and NSNotificationCenter to allow easy access to event data