add autoformat support closes #2