updated to use riot api