clean up some things found with static analysis
create KeepAlive message parser & serializer