implemented autocommand binding