made queue and topic creation generic