add switch to manage autoformat