work around for curl follow location