fixed issue with requireNamespace