reference resolving for files added