fix #17: If no rname provided, create one according to varlabe