modify stub class and RemoteObjectRef