fixed bug, added new fields to extract fluxes