updates for scanner example