add event publishing when file changed