added parseTokenOffsetMs, using toInt() not parseInt(x,10)