ported launcher2 build script over