output into files in outputs folder