modifications to fix issue #39 with ban versus purge