sscanf(params,"rI(5)S(None)[50]",ID,time,reason);
sscanf(params,"rI(5)S("None")[50]",ID,time,reason);