add cookie to stream, and add pac file