added cookie support for last search