first running interaction flow version with dirty output plotting,
to be debugged