added location logging