added events and socket to message reader