message parsing partially implemented