more phrase detector stuff