minor edits, scripts to gen data