auto-pairs upgraded