keep compatibility between v7 and v8