changed set_api_version to get_api_version