delete migrationmain and add master polling