reworked how we expose config via endpoints