def max 65535 and cleanup av object
def max 65535 and cleanup nc object
fix nc max
nc some cleanups
add uci init loop for trendlog