battle message handling setup