Add tb.loadShellPackage and fix bugs