patching to remove kex dependencies