move topic creation into init function