add notification functions
handle undefined users and games