fixing urls and paths