cleanup rc + wres code
correct prototypes