set a thread stack size of 2Mb to be able to create more threads