first take at migration code