adding a history endpoint