fixed user and location binary searches