injecting rootUrl