refactoring search strategy and removing old error_log