bundle template: abstracted the load functionality into its own function