modify generate scripts