One way to solve this problem is to select multiple actions that correspond to the context at each step in the rewriting process.
the question that emerges here is how to determine which criteria to use in selecting multiple actions for a context.