figured out all TODOs, added cookies