sert max thread number to 128