somewhat modularize rswg