fixed register types for Unity, tried add thread manager