remove some debug code, and add line for dispatching message to correct workers