can now query location without crashing