modifying baseUrl assignment to get correct path