fixed bugs associated with session data and YAML.