change search log directory structure and add option