Implemenation for bubble using capnproto