fix RMF_UNUSED to work with non-io types
updated plugin with restraints compiles