finish creating script to gen oaf file