adding socket.io server notification functions