checkgin if libraries exist