added getHistory() api