altered message processing in main class