killing the dependency on BB + minor restructure regarding the order of generator calls
wiring up templates (iterative commit, not yet functional)