converted registers to protocols and records. 2/3 finished.