remove old api and replace with shiny new api