fixing broken api calls