init and add the history.