some modifications to call NLP service