setup the main scala structure the right way