parseCookies will probably need a base case too