parsing echo, need to finish cleaning up calls to foreign-enum-value