move ipRelativeDir to internal