before changing endpoint domain