fixes for dk and mage bindings