finish ba_init