ready for RMI code