in reply to Re^3: YAML problemin thread YAML problem
Have you tried removing YAML from the problem?
If your program fails to work with or without YAML, maybe YAML is not part of the problem at all?