reorganize autocommand