fixed the folder bug
fixed the parsing of smarts error