do it the luanode way and define a xaux.agent module, goal is to have multiple agents for different use case like failover, ha, ...