add download/export functionality
merge api client