expand consoleif and extracted mkdir for iutilities