modify pkg structure