added current search plugin code