use utils history functions rather than rstudio package history functions