updated client URL handling