fix the routehandles for redistribution; remove debug code; add additional comments