added util to translate from znode to flow