work on relative url and renaming bugs

work in progress