split the node and bridge up into two separate files - also message.type is now message.method