add flow stuff