initial version of dataflow.ts