need to ensure data is handled correctly but fundamentally works again
basic structure now works for btlidx, templates, and segments