add functools.
add YAML as JSON to global.