calling api calls locally still, need to fix stuff