fixed errors, configurable root node