bug fix in chained_lsqfit
prep for upload