added file checks for magento core