updated data flow for scanner