api calls almost done