restore masterCredentials