add support for checkmode when group is provided