don't use useless globals
add more details about search syntax