simplified rmi code