fix yaml parsing

always return a ruby object from the parsing function