update some init code