kind of got things working for generic circuits instead of just formulas
big refactoring