fix baseurl to work online and offline