cleanup flash rev code, also fix for bad check from last commit that mak...

...es everyone cannot be rev by influencing