add support to set parentCid to 0