clean some "global = true"
and finish halberd