enables cookies for requests, fix #4