mostly finished migrate