fixed some cookie stuff