yaml to env function