updated with new endpoints