script to run xflux