add utils for making native serialization easier