worked up production version, plus build script to create everything