Threads count in config file now affect real threads count, this part is ready to merge