make scanning more efficient, fix searching and rating