copying dependencies into modular structure