many improvements (log, interactive mode, ...)