jyaml  performance enhance ( original code from jyaml.sourceforge.net 1.3)