make PIPS library loading (somewhat) generic