fixing cookie path bugs