simplify/future proof api version check