fixes generate scripts