making Proxy instances serializable