fine tuned retcodes

test suite passes:
checks for and applies proper rules for creating rules under sc, sp