fixes for Magento 1.5 and below