work-in-progress for API integration