wrap scope in lambdas to let the migrations run again