adapted add file events