improved handling of and tests for active and permanent bans