flow_statistics script update