Added global support for publishers

global addition for publisher support

changed/added tests for unit testing,