converted timer for tcp and udp connection handling m4-inline-code into functions, added proper config dependencies