changes to i/o in filaments_Fit