refact migrate module