add flow id to flow constructor