finished writing handler to return bans