diagnosing message processing bug