refactoring, add bad token channel, keep alive