add cookie jar to options to prevent some redirect loops