new function for returning all flow stats