bugfix for install-and-run, log by __name__, bugfixes for logging