compute offsets correctly
submodulize jsoncpp