adjust order of flow fields and add dltype field.