fixed using rules in token definitions