added has_lib script