fix config loading.
expose url and config in client