implement find functionality with CLI