renamed toStringReference function
cleaned up dataflow creation and fixed a test failure due to
inconsistent method checking