fixed client script for rmi