still working on flag download debugging