added function for publisher module, planning to change index file structure