wip improve fair-share algorithm