updated magento api to actually work!