fixed bug where endpoint names were not registered correctly