revise directory handling and drop models from mat files