reset globals before action to allow multiple passes