fix generator.
add version