added support for mbuf