added ability to specify anchor words