added the option to add headers