add funcs to migrate