slightly "less dumb" rc parsing