changed yaml.load to yaml.safe_load