upgrade - support cookie & modify