modify master after restore