use the new method for work distribution
PE refactoring
move aliveness calculation into own function, get rid of old work distribution function