fixed cookie reader