save flare to file