handle different types of messages based on topic name for now