fix up endpoints