added support for search on init