added location reading