added support for YAML marshaled input