monkey patch for expect syntax support