minor fixes (logging and cli)