add BuilderContext for templates