refactor lol api