update parts of topic logic

Signed-off-by: tengattack <tengattack@foxmail.com>