deterministic json econding (OrderedDict and edge sorting)
faster normalization
fix metadata editing