fixing endpoint configuration