make xbs self-contained