better autocmd handling