made url and location nullable