add scratch work around sMAP and capnp