add search and saveinstance