added flow statistics