support for API versioning

patch submitted by anonymous contributor