set 'disable_auto_insert' only if necessary
added missing "import io"