fixing urls and settings