ENH: improving export_csv and check_build