support legacy migration