refactors file dependencies