added historical endpoint