nasty nlp code including location matching ...