simplify message handing loop of actors