fix up search by tags, fixed up spacing and error handling as well