updated example and build script