change require() into requireNamespace()