some fixes in collectd protocol