set baseURL correctly during init