added init function for publisher module