support legacy flow