added --search option