change cookie serialization from marshal to hybrid