adds generator option
renamed to debug mode. used for troubleshooting versions