load API first