move versioning function to init