Rewrote sToMessage as parseMessage, wrote generic messageHandler for now