buildGr reworking