add more variables to have common templates for both types of packages
add making packages nested after creation. remove nested template