generator: use default value for optional generation