fixing broken api