finally add code-gen for constants
bulk update, v3 work
change some names to be more consistent