add history in interactive mode