setup the history