implement GetHistoryCommand