format stuff and output folder