fix Error in command line not being visible due to buffering, also cleaned some other (nw)