giving api an init