Move baseurl higher up scope