change mg and cache peer