cleaning up api_version call