move RC/conf code to rc.rb