updated curl with -LSso, otherwise it fails on redirect