update some framework code