extend the api