added ability to find all or best