minor updates to nlp code