fixing serialization of dll class