protect libraries