added fuzzy flag to control approximate matching