start cookie handling