patch for dependency autocleanup