fixed api for versioning