Lots of awful hacks to merge languages and make them pass