rmi and serialize