replaced grep plugin, changed close file cmd