refactored alchemy API calls to be much DRYer