small changes to cookieJar passing