add history functionality to commander