added index routing to messages