other way of making sure libraries aren't listed twice