xhrs & dependency injection