divide files into packages