updated gists and build script