fix optional download parameter case
allow setting region domain for download