manually follow redirects to fix #183