finally hopefully have cookies working completely