encapsulating all API calls into the API object. mostly done. works.