BIG RESTRUCTURE -- addition of sr_helper.(c|h)