fix to consent storage. now uses JSON