use proxy if it is set on provider