started restructuring to use linPathFlux, not finished