renamed most of the api endpoints