extend printResourceName() rather than printResource()