initial work on message handler: pingpong and parse failure