update some necessary file