fixing some cookie issues