working on cookies and stuff