add flow directives