add split pkg support
split pkg support(unfinished)