start refactoring test script to make a good place for example build stuff
more refactoring