added getTokenVersion function