removed 'root' var and added a lot of verbosityness