upgrade cfg