only check proxy if config is passed