minor change in get_apps_for_groups