combine templates from all servers before processing template messages
added just-in-time connection capability and _disconnect() to avoid potential socket timeout long delays