fixing some issues with url location for server