added debug output for the value flow