fix package namespace and class not found issues