More work on add pkg to sub