added != null checks in rmstatus action