added location hooks