started implementing reading of outputs