moved message listener to node