remove getRmState(), use a bool reference instead