Improved LDom support