adds the creates dirs option if the output is saved to a file
adds the dump headers option