move early-init block to init