add threadCount option (#20)