catch if opts[:generator] is nil