changed add flow api