added trivial cookies implementation
wip