refactor initializations into RSettings