misc improvements to adflasher