script to gen guide