added setFlux
(#467)