some updates for calling the api