changed from 5k to 20 per thread
patch not ready yet