added the function of build a package