output is file(s), not directory+files
some cleanup