setup once

We already call setup function in every case so we can DRY here a bit