increased thread stack size to avoid StackOverflowError on Ubuntu