tidy R_MOD up, fix one small corner
atomic RP