added new modes for magento, php