moved to checkinit to allow also thred mode