further work on RMModel