refactored api version configuration