added changeroot handling
added report handling