correctly initialize location manager