enabled scatter report facility and group selection and solved race condition for retrieving facility_id and group_id