draft of detail template processing in data driven detail pipeline