modifying message listener so objects can listen to messages emitted for other objects