add rmi config and class