Fixed api load timing issue so api functions now work as expected