Fixed rf cavities to a degree. found a huge error in the functional form of the fields and about to fix them.