added support for xld