handle ack-grep