added flowgraph query and command