fixed load yaml file method