befor merge into preinit