don't fold unless the syntaxmatching is right.

fixes issue #4