fixed bug where baseurl was wrong