add suport for old magento version