lfd stuff compiles, but wont work yet as rotreg has not been added