protect library