added output folder overwrite ability