setting up a script to pull RMI