Updated to set default package if the namespace is not available