change to NOT just longest match - tests need to be reviewed