create output folder earlier