load api scripts