add functionality of multiline search