RWS configuration code move to rws.rb