bugs fixed. better distribution of eppns over threads.