code used for easy5 to magento migration