Making api calls corectly, finally