make search aware of past setting
Merge pull request #266 from ialja/master

make search aware of past setting