allow array as second arg in export_*