finished first pass of swift setup code