improve response generation

Response is now weighted by the tuple of the input message with the most outbound branches (potential)