avoid using mksnpath for refs