upated socket,rmi controller