moved setup out