some ref issues