submit apis and init