add error message for bad libraries