fix some init stuff