changes for making internal url's work