make endpoint configurable