migrate on service or test start