change references to be relative references