cookies and rest