diff --git a/entity/ImportField_Entity/ImportField_Entity.aod b/entity/ImportField_Entity/ImportField_Entity.aod
index c10aa10b61556a34345f1747acde0279a7cc980a..c9a4484e4b820e2e7f12cc8c628b3fb01d63860a 100644
--- a/entity/ImportField_Entity/ImportField_Entity.aod
+++ b/entity/ImportField_Entity/ImportField_Entity.aod
@@ -42,6 +42,7 @@
     <entityField>
       <name>FIELDNAME</name>
       <title>Fieldname</title>
+      <state>READONLY</state>
     </entityField>
     <entityConsumer>
       <name>LeadImportC</name>
diff --git a/process/Leadimport_lib/process.js b/process/Leadimport_lib/process.js
index 857d35cf48a8f7867f69beb182cf299da455de3d..e4f727e01e1a7b79a5f2f8c272213c0c4970677d 100644
--- a/process/Leadimport_lib/process.js
+++ b/process/Leadimport_lib/process.js
@@ -520,7 +520,7 @@ LeadImportUtils.insertOrg = function(pDataFields, pDataTypes,  pFieldDef, pField
 */
 LeadImportUtils.insertPers = function(pDataFields, pDataTypes,  pFieldDef, pFieldValues, pOrgId, pLeadValues, pUser, pDate)
 {
-    var isoLanguage = checkISOLanguage(pLeadValues["ISOLANGUAGE"]);
+    var isoLanguage = LeadImportUtils.checkISOLanguage(pLeadValues["ISOLANGUAGE"]);
     //Person
     var PersValues = LeadImportUtils.setValues(pDataFields["PERSON"], pFieldDef, pFieldValues);
     PersValues["TITLE"] = ContactInfoUtils.getTitle(pLeadValues, isoLanguage);
@@ -553,7 +553,7 @@ LeadImportUtils.insertPers = function(pDataFields, pDataTypes,  pFieldDef, pFiel
     AddrValues["CONTACT_ID"] = contactId;
     LeadImportUtils.insertTable(pDataFields, pDataTypes, AddrValues, "ADDRESS", pUser, pDate);
 
-    var entityFieldValues = getEntityFieldsPers(PersValues, ContactValues, AddrValues);
+    var entityFieldValues = LeadImportUtils.getEntityFieldsPers(PersValues, ContactValues, AddrValues);
     
     return new Array(persid, contactId, entityFieldValues);
 }
diff --git a/process/importLead_serverProcess/process.js b/process/importLead_serverProcess/process.js
index bde3d74c070d7559450a83a319287e572336b24c..a6807e22970784ab1344e183a98fe927cdbd9b1b 100644
--- a/process/importLead_serverProcess/process.js
+++ b/process/importLead_serverProcess/process.js
@@ -33,11 +33,11 @@ data = util.decodeBase64String(data);
 data = text.parseCSV(data.replace(/(^\s+)|(\s+$)/g,""), recordSep, fieldSep, fieldLimit.charAt(0));//get data from file
 
 var ImportDate =  vars.getString("$sys.date");
-var ImportFieldDef = getImportFieldDef(importdefid); // [Fieldnumber, Mappingfield]
+var ImportFieldDef = LeadImportUtils.getImportFieldDef(importdefid); // [Fieldnumber, Mappingfield]
 
 var DataFieldCount = data[0].length;
 //  Attributes that should be created for Organisations and persons
-var AttrObject = getLeadAttr(importdefid);
+var AttrObject = LeadImportUtils.getLeadAttr(importdefid);
 
 var FieldDef = LeadImportUtils.addArray(ImportFieldDef, new Array(DataFieldCount++, "SOURCE", ""));
 
@@ -123,7 +123,7 @@ try
         var countrypos = getFieldPos (FieldDef, "COUNTRY")[0];
         
         //check the COUNTRY
-        impvalues[countrypos] = checkCountry(impvalues[countrypos]);
+        impvalues[countrypos] = LeadImportUtils.checkCountry(impvalues[countrypos]);
         
         try//import data
         {
@@ -146,7 +146,7 @@ catch(err)
     logging.log(err);
 }
 
-scanLeadDups(allContactData);//search for duplicates
+LeadImportUtils.scanLeadDups(allContactData);//search for duplicates
 
 var rows = eMath.subInt(dsanz, 1);
 rows = eMath.subInt(rows, errorCount);//datasetcount - errors = inserts