add xfn_chmsg_handler_cb boilerplate and respective hook