corrected generator to pull file type from module options.