add some message types and handlers