update escape rules