load api through waitsFor