added flow stats