switch to c, drop capnp and flags for now