add flag to turn per-lib on or off