changing domain endpoint