adding support for config endpoint as well