flag/spawn scripts updated