add parse topic logic