add flow monitoring