implemented set cookies for requests