OK think I have this base url stuff sorted