add generator source code