improved retrieval of version id for backwards compatability