add history with grep