main_init end