speeds up shell search (thanks to Sachin Patil)