a bytearray utils from jorge, and jorge's nice style for the listener node.