updated to build with MD/XS 4.0.