add typo flag functionality