Directly read cookies

fixes #53