migrate entities