added flux
minor tweaks