add topic exchange code