improve autocomplete search
turns out logging has no idea what "ending" means