move global API into main include