add some basic infrastructure for cookies