rmi logic