let endpoint be configurable