local abstaction of RGS to avoid multiple imports