template for main packages