flatten deps