adding topic api stuff