add pkg support

add pkg support