fix main class handling and handle version differently. API version
controls Major.minor and Vault controls sub-versions.