added version constnat.
tweak how version is registerd.