added some consts and use_iperf3 flag;
todo: test and add iperf3