[style][wip] code refactoring, constructing backbone for ot msg