add pkg support