update location handling