create map output files only if it has contents