fixes to flux demo stuff