added support for cookie jars