code to check whether libs have a certain prefix