need to make this shared
native serialization for Array