don't generate unneeded dirs
fixed newlines in schema classes