switched from lists to dicts to store api informations