pass lazy connection in core.preinit event