made overall dataflow working