WIP: getting cookies to work as desired