adjusted payload to allow for meta data to be passed in with doc