updated sub-gens to use script-base path variables