work on publish subscriber mechanism for getting the work