legacy migration works