first part of master/slave migration steps