adding pnexpires and metadata arguments to subscribe method