run nlp in foreground