write csv
/api
factor out the check of a specific catalog