ensure api version is properly formatted