added margin-rule serialization