work without rmi plugin

this code should work without the rmi plugin