resolving the baseurl problem