many updates to pipes, make depletion work on per-library basis, merge before assembly