removing the "matches" handling in scan command (and fixing docblock)