check err and groups