use child's xid, fixes #36