fixing url/path related bugs.