xcuserstate
expandtable - fixed 64-bit issue