rebuild kms