change parentpath and updatepath - add then in for loop to walk through payload hierarchy