adding history to interactive mode