go back to dynamically working out the WS url