Fixed bug with exception class
Use YAML instead of JSON to load