consolidated code to make value added mock group catalogues