got history working, still need to design better