added ability to get API data