simplifying the message retrieval, query and decoding schemes