version has simple function to store phrases locally and be called via thread