renamed config.endpoint to config.provider