add creation of proxy for serialization