working the api section