this should probably be inside the spawn workers method.