fix bugs
fix con reset
* update search and refactoring