updating references and undoing temp endpoint change