baseurl variable moved to static variable