changed oldname -> newname to multiline output