prelim data structures + file layout for r6.