load config from endpoint rather than from a file