savewithconfigandindex