fix to pubsub unmerged from base

Support for pmessage as current implementation doesn't support the right pattern