do some more initialization
+book
strip-refs of semantics so semantics can be serialized as JSON