decoding the message. is it a tree?