accounting based on message type