move versioning stuff to its own file