refacotor versionInfo class