can detect "generate" mode