making more flexable, adding purgezone