better message output control