added autoformat option