adding version support to api