use repo class not searchrepo