minor: remove dead code
locate: add some logging and comments