import, adopt, and upgrade jxrlib