add possibility to modify autocommand event