small indexing bug and adding flux_errs