add logger
fix search bug
modify search bug