add the api stuff