endpoints reworked for the new api