fixed emit issue at least. xsb still being problematic.